//
//  FindForum.m
//  CarFace
//
//  Created by dlios on 15-3-25.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "FindForum.h"

@implementation FindForum
- (void)dealloc
{
    [_lable release];
    [_search release];
//    [_changeView release];
    [_button release];
    [super dealloc];
}


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        

        self.lable = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, frame.size.width / 8, frame.size.height)];
        [self addSubview:self.lable];
        [_lable release];

        
        self.search = [[UISearchBar alloc]initWithFrame:CGRectMake(frame.size.width / 8, 0, frame.size.width * 11 / 16, frame.size.height)];
        self.search.showsBookmarkButton = NO;
        self.search.showsSearchResultsButton = YES;
        [self addSubview:self.search];
        [_search release];
      
        
        self.button = [[UIButton alloc]initWithFrame:CGRectMake(frame.size.width  * 13 / 16 , 0, frame.size.width / 4, frame.size.height)];
        self.button.backgroundColor = [UIColor orangeColor];
        [self addSubview:self.button];
        [_button release];
        
        
    }
    return self;

}




/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
